package cn.luischen.model;

import java.io.Serializable;

import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import static org.junit.Assert.fail;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import org.mockito.MockitoAnnotations;
import com.alibaba.fastjson.JSONArray;
import org.junit.After;
import org.powermock.core.classloader.annotations.PrepareForTest;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import java.lang.reflect.Method;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import static org.junit.Assert.*;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import org.junit.Rule;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;

/**
* The class <code>LogDomainTest</code> contains tests for the class <code>{@link LogDomain}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-07 17:51:53
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
public class LogDomain_getAction_WGTest {

	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-07 17:51:53
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	/**
	* @date 2021-09-07 17:51:54
	* @see cn.luischen.model.LogDomain#getAction
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getAction_0113_190013_970_0_00() throws Throwable {

		cn.luischen.model.LogDomain unitspirit_fixture = new cn.luischen.model.LogDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1610535612);
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		Whitebox.setInternalState(unitspirit_fixture, "action", "登录后台");
		Whitebox.setInternalState(unitspirit_fixture, "id", 82);
		Whitebox.setInternalState(unitspirit_fixture, "authorId", 1);

		//返回值定义 
		String result_expected = "\"登录后台\"";

		String unitspirit_result_d = "\"登录后台\"";
		unitspirit_fixture.setAction(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getAction();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:54
	* @see cn.luischen.model.LogDomain#getAction
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getAction_0113_190013_992_0_00() throws Throwable {

		cn.luischen.model.LogDomain unitspirit_fixture = new cn.luischen.model.LogDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "data",
				"{\"uid\":1,\"password\":\"111111\",\"email\":\"1034683568@qq.com\",\"screenName\":\"admin1\"}");
		Whitebox.setInternalState(unitspirit_fixture, "created", 1610529720);
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		Whitebox.setInternalState(unitspirit_fixture, "action", "修改个人信息");
		Whitebox.setInternalState(unitspirit_fixture, "id", 80);
		Whitebox.setInternalState(unitspirit_fixture, "authorId", 1);

		//返回值定义 
		String result_expected = "\"修改个人信息\"";

		String unitspirit_result_d = "\"修改个人信息\"";
		unitspirit_fixture.setAction(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getAction();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:54
	* @see cn.luischen.model.LogDomain#getAction
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getAction_20210722_100105_792_1_00() throws Throwable {

		cn.luischen.model.LogDomain unitspirit_fixture = new cn.luischen.model.LogDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "created", 1626919265);
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		Whitebox.setInternalState(unitspirit_fixture, "action", "登录后台");
		Whitebox.setInternalState(unitspirit_fixture, "id", 402);
		Whitebox.setInternalState(unitspirit_fixture, "authorId", 1);

		//返回值定义 
		String result_expected = "登录后台";

		String unitspirit_result_d = "登录后台";
		unitspirit_fixture.setAction(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getAction();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:54
	* @see cn.luischen.model.LogDomain#getAction
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getAction_20210722_100105_797_1_00() throws Throwable {

		cn.luischen.model.LogDomain unitspirit_fixture = new cn.luischen.model.LogDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "data",
				"{\"site_record\":\"222\",\"google_site_verification\":\"111\",\"site_description\":\"erer\",\"baidu_site_verification\":\"123\",\"site_title\":\"11122211\",\"allow_install\":\"\"}");
		Whitebox.setInternalState(unitspirit_fixture, "created", 1626916317);
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		Whitebox.setInternalState(unitspirit_fixture, "action", "保存系统设置");
		Whitebox.setInternalState(unitspirit_fixture, "id", 401);
		Whitebox.setInternalState(unitspirit_fixture, "authorId", 1);

		//返回值定义 
		String result_expected = "保存系统设置";

		String unitspirit_result_d = "保存系统设置";
		unitspirit_fixture.setAction(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getAction();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}

	/**
	* @date 2021-09-07 17:51:54
	* @see cn.luischen.model.LogDomain#getAction
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_getAction_20210722_100105_806_1_00() throws Throwable {

		cn.luischen.model.LogDomain unitspirit_fixture = new cn.luischen.model.LogDomain();
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "data",
				"{\"site_record\":\"222\",\"google_site_verification\":\"111\",\"site_description\":\"erer\",\"baidu_site_verification\":\"123\",\"site_title\":\"111222\",\"allow_install\":\"\"}");
		Whitebox.setInternalState(unitspirit_fixture, "created", 1626878146);
		Whitebox.setInternalState(unitspirit_fixture, "ip", "127.0.0.1");
		Whitebox.setInternalState(unitspirit_fixture, "action", "保存系统设置");
		Whitebox.setInternalState(unitspirit_fixture, "id", 399);
		Whitebox.setInternalState(unitspirit_fixture, "authorId", 1);

		//返回值定义 
		String result_expected = "保存系统设置";

		String unitspirit_result_d = "保存系统设置";
		unitspirit_fixture.setAction(unitspirit_result_d);
		String unitspirit_result = unitspirit_fixture.getAction();
		//getCaseAssertList 
		UnitAssert.assertEquals(result_expected, unitspirit_result);
	}
}
